package com.shujia.day12;


import java.io.*;

public class Demo07IOWriter {
    public static void main(String[] args) throws IOException {
        /*
            写出数据：
                使用字符流写出
         */
        String path = "data/writer.txt";
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(path));
        for (int i = 0; i < 100; i++) {
            outputStreamWriter.write("还有三节课要放假啦！！！！\n");
        }
        outputStreamWriter.close();



    }
}
